<cfcomponent output="false">
	
	<!--- --->
	
	<cffunction name="searchTags" access="public" output="false" returntype="query">
		<cfargument name="input" required="true" />
		<cfargument name="exclude" required="true" />
		
		<cfset var local = {} />
		
		<cfreturn application.g.tagGateway.searchTags(argumentCollection=arguments) />
	
	</cffunction>
	
	<!--- --->
	
	<cffunction name="add" access="public" output="false" returntype="boolean">
		<cfargument name="tag" required="true" />
		
		<cfset var local = {} />
		
		<cftry>
			<cfquery name="local.getSession" datasource="fundrdb">
				insert into tag(id,active,created,modified)
				values(#$.database.string(arguments.tag)#,1,now(),now())
			</cfquery>
			
			<cfcatch>
				<cfreturn true />
			</cfcatch>
		</cftry>
		
		<cfreturn true />
	
	</cffunction>
	
	<!--- --->

</cfcomponent>